<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%zs_customer}}".
 *
 * @property integer $id
 * @property string $name
 * @property string $web_site
 * @property integer $type
 */
class Customer extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%zs_customer}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name' , 'type' , 'web_site'] , 'required'],
            [['type'], 'integer'],
            [['name'], 'string', 'max' => 20],
            [['web_site'], 'string', 'max' => 200]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => '商家名称',
            'web_site' => '网址',
            'type' => '分类',
        ];
    }
}
